#include <iostream>
#include <string>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>



int main()
{
    alarm(10);
    sleep(4);
    int n = alarm(0);//取消闹钟
    std::cout << "n: " << n << std::endl;
    return 0;
}
